
cc.Class({
    extends: cc.Component,

    properties: {

    },

    loadScene2(){
        cc.find('Canvas/welcome').getComponent(cc.Animation).play('welcome1-d');
        cc.find('Canvas/welcome/btn2').getComponent(cc.Button).destroy();
        this.scheduleOnce(function(){cc.find('Canvas/welcome').active=false},4)
        cc.find('Canvas/welcome2').active=true;
        cc.find('Canvas/welcome2').getComponent(cc.Animation).play('welcome2');
    },

    scene2continue(){
        cc.find('Canvas').getComponent('Guide').scene2();
    },


    loadScene4(){
        cc.find('Canvas/welcome3').getComponent(cc.Animation).play('welcome3-d');
        this.scheduleOnce(function(){cc.find('Canvas/welcome3').active=false},4)
        cc.find('Canvas').getComponent('Guide').scene4();
        // cc.find('Canvas/welcome2').active=true;
        // cc.find('Canvas/welcome2').getComponent(cc.Animation).play('welcome2');
    },

    jumptoScene4(){
        
        cc.find('Canvas').getComponent('Guide').scene4();
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},
});
